package com.coconet.gas.vo.dw;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "week_pass_task_group")
public class WeekPassTaskGroup implements Serializable {
    @Id
    private Integer id;

    /**
     * 弱口令任务id
     */
    @Column(name = "week_pass_task_id")
    private Integer weekPassTaskId;

    /**
     * 报告任务id
     */
    @Column(name = "results_task_id")
    private String resultsTaskId;

    /**
     * 添加时间
     */
    private Date time;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取弱口令任务id
     *
     * @return week_pass_task_id - 弱口令任务id
     */
    public Integer getWeekPassTaskId() {
        return weekPassTaskId;
    }

    /**
     * 设置弱口令任务id
     *
     * @param weekPassTaskId 弱口令任务id
     */
    public void setWeekPassTaskId(Integer weekPassTaskId) {
        this.weekPassTaskId = weekPassTaskId;
    }

    /**
     * 获取报告任务id
     *
     * @return results_task_id - 报告任务id
     */
    public String getResultsTaskId() {
        return resultsTaskId;
    }

    /**
     * 设置报告任务id
     *
     * @param resultsTaskId 报告任务id
     */
    public void setResultsTaskId(String resultsTaskId) {
        this.resultsTaskId = resultsTaskId;
    }

    /**
     * 获取添加时间
     *
     * @return time - 添加时间
     */
    public Date getTime() {
        return time;
    }

    /**
     * 设置添加时间
     *
     * @param time 添加时间
     */
    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", weekPassTaskId=").append(weekPassTaskId);
        sb.append(", resultsTaskId=").append(resultsTaskId);
        sb.append(", time=").append(time);
        sb.append("]");
        return sb.toString();
    }
}